import request from '@/utils/request';

export function selectAll() {
  return request({
    url: `/MaintenanceRecord/gelikg/selectAll`,
    method: 'get'
  });
}

export function addGelikg(data) {
  return request({
    url: `/MaintenanceRecord/gelikg/add`,
    method: 'post',
    data: data
  });
}

export function updateGelikg(kgid, data) {
  return request({
    url: `/MaintenanceRecord/gelikg/update/${kgid}`,
    method: 'put',
    data: data
  });
}

// 删除（逻辑删除）
export function deleteGelikg(kgid) {
  return request({
    url: `/MaintenanceRecord/gelikg/delete/${kgid}`,
    method: 'delete'
  });
}

export function downloadGelikg() {
  return request({
    url: `/MaintenanceRecord/gelikg/download`,
    method: 'GET',
    responseType: 'blob'
  });
}